package com.cskaoyan.module.vo.wx.wxy;

import com.cskaoyan.module.bean.vo.OrderListData;
import com.cskaoyan.module.pojo.MarketAftersale;
import com.cskaoyan.module.pojo.MarketOrderGoods;
import lombok.Data;

import java.util.List;

@Data
public class WxAftersaleDataVo {

    private Integer total; //总的数据量，没有分页的情况下的数据量
    private Integer pages; //总的页码数
    private Integer limit; //当前页最多的数据量
    private Integer page; //当前页的页码
    List<WxAftersaelDataListVo> list;

    public static WxAftersaleDataVo data(long total, Integer pages, Integer limit, Integer page,List list) {

        WxAftersaleDataVo aftersaleDataVo = new WxAftersaleDataVo();
        aftersaleDataVo.setTotal((int) total);
        aftersaleDataVo.setPages(pages);
        aftersaleDataVo.setPage(page);
        aftersaleDataVo.setLimit(limit);
        aftersaleDataVo.setList(list);
        return aftersaleDataVo;
    }
}
